package com.itheima;

import com.itheima.config.SpringConfig;
import com.itheima.service.ResourcesService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class App {
    public static void main( String[] args ) {
        ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfig.class);
        ResourcesService bean = ac.getBean(ResourcesService.class);
        boolean flag = bean.openURL(" http://pan.baidu.com/haha ", " root ");
        System.out.println(flag);
    }
}
